home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Modules
/
BackSpaceModules
/
Source
/
SchoolView
/
README
< prev
next >
Wrap
Text File
|
1994-04-17
|
1KB
|
35 lines
README SchoolView v1.0, 17 April, 1994
This is SchoolView, a BackSpace module that implements the flocking
algorithm discussed in SIGGRAPH a few years ago (1989, 1990?) and used
in Jurassic Park for the herd-o-dinosaurs scene.
The code is public domain, although you'd probably need the article to
follow the algorithm. Basically, a fish's acceleration is a weighted
and prioritized sum of four different accelerations. They are (in
order of priority):
1. Collision avoidance
2. Flock centering
3. Flockmate velocity matching
4. Target seeking
The fish are implemented as a font for speed.
Hope you enjoy it. Comments and suggestions to:
David Lambert
dcl@homer.uu.panix.com (NeXTMail ok)
NOTE:
Also included is a slightly modified Thinker.m for Backspace itself.
You may have noticed that Backspace no longer lets you do something
with the mouse, no matter what "- ignoreMouseMovement" returns. Well,
it does, in case, you haven't noticed, and this Thinker.m fixes it, if
you use it instead. (The problem had to do with the way Backspace tried
to see if it should quit displaying the view - looking for the "autoDimmed"
state.) I needed this for the "Follow Mouse" switch in SchoolView.